package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type SlideshowListReq struct {
	g.Meta `path:"/content/slideshow" method:"get" tags:"content" sm:"轮播图列表" can:"content.slideshow"`
	model.SlideshowListInput
}
type SlideshowListRes struct {
	Total int                    `json:"total"`
	Rows  []*model.SlideshowItem `json:"rows"`
}

type SlideshowStoreReq struct {
	g.Meta `path:"/content/slideshow/store" method:"post" tags:"content" sm:"轮播图添加" can:"content.slideshow.store"`
	model.SlideshowFormInput
}

type SlideshowStoreRes struct{}

type SlideshowUpdateReq struct {
	g.Meta `path:"/content/slideshow/update/{id}" method:"put" tags:"content" sm:"轮播图更新" can:"content.slideshow.update"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"轮播图id"`
	model.SlideshowFormInput
}

type SlideshowUpdateRes struct{}

type SlideshowDestroyReq struct {
	g.Meta `path:"/content/slideshow/destroy" method:"delete" tags:"content" sm:"轮播图删除" can:"content.slideshow.destroy"`
	Ids    []uint64 `json:"ids" v:"required|array|max-length:200" dc:"轮播图id集合"`
}

type SlideshowDestroyRes struct{}
